package finance

class UserTransaction {
	
	Long id
	Long version
	UserInvestment user_investment
	String action
	BigDecimal qty
	BigDecimal latest_price
	
    static constraints = {
    }
    
    static mapping = {
        table 'user_transaction'
        columns {
        	id column: 'user_transaction_id'
        }
    }
	
	String toString() {
		return "Transaction: ${id}, ${action}, ${user_investment}, ${qty}, ${latest_price}"
	}
}